package com.jeff.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author yangjf
 * @ClassName StorageFeignClient
 * @Description: TODO
 * @date 2021/8/19 18:27
 */
@FeignClient(name = "storage-service")
public interface StorageFeignClient {
    @GetMapping("storage")
    String deduct(@RequestParam("commodityCode") String commodityCode, @RequestParam("count") Integer count);
}
